package com.hxx.service;

import com.hxx.domain.TProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("service-product")
public interface ProuctFeign {

    @PostMapping("/product/show6")
    public List show6(@RequestBody List<Integer> list);

    @PostMapping("/product/show5")
    public String show5(@RequestParam String name);

    @PostMapping("/product/show4")
    public String show4(@RequestBody TProduct product);

    @GetMapping("/product/{id}")
    public TProduct getProduct(@PathVariable Integer id);

    @GetMapping("/product/show1")
    public String show1(@RequestParam String name);

    @GetMapping("/product/show")
    public String show();

    @GetMapping("/product/show2")
    public String show2(@RequestParam String name,@RequestParam int age);
}






















